<div class="form">
    <?php
    $form = $this->beginWidget('GxActiveForm', array(
        'id' => 'team-form',
        'enableAjaxValidation' => false,
        'htmlOptions' => array('enctype' => 'multipart/form-data'),
            ));
    ?>

    <p class="note">
        <?php echo Yii::t('app', 'Fields with'); ?> <span class="required">*</span> <?php echo Yii::t('app', 'are required'); ?>.
    </p>

    <?php echo $form->errorSummary($model); ?>

    <div class="row">
        <div class="rowLabel"><?php echo $form->labelEx($model, 'member_name'); ?>
        </div>
        <div class="rowControl"><?php echo $form->textField($model, 'member_name', array('maxlength' => 145)); ?>
            <?php echo $form->error($model, 'member_name'); ?>
        </div><!-- row -->
    </div>

    <div class="row">
        <div class="rowLabel"><?php echo $form->labelEx($model, 'member_designating'); ?>
        </div>
        <div class="rowControl"><?php echo $form->textField($model, 'member_designating', array('maxlength' => 45)); ?>
            <?php echo $form->error($model, 'member_designating'); ?>
        </div><!-- row -->
    </div>
 <div class="row" style="margin-bottom: 10px;">
        <div class="rowLabel"><?php echo $form->labelEx($model, 'photo <span class="required">*</span>'); ?></div>
        <div class="rowControl"><?php echo $form->fileField($model, 'photo', array('class' => 'btn')); ?>
            <?php echo $form->error($model, 'photo'); ?>
        </div><!-- row -->
    </div>
    <?php if (!$model->isNewRecord) { ?>

        <div class="row" style="margin-bottom: 10px;">
            <div class="rowLabel">&nbsp;</div>
            <div class="rowControl"><img src="<?php echo getFrontDir() . 'skill-team/' . $model->photo; ?>"/>
            </div><!-- row -->
        </div>
    <?php } ?>
    <div class="row">
            <div class="rowLabel"><?php echo $form->labelEx($model, 'about_member'); ?>
            </div>
            <div class="rowControl"  style="clear: both;margin-bottom: 10px;">
                <?php
                $this->widget('common.extensions.ckeditor.CKEditor', array(
                    'model' => $model,
                    'attribute' => 'about_member',
                    'id' => 'about_member',
                ));
                ?>				
                <?php echo $form->error($model, 'body'); ?>
            </div><!-- row -->
        </div>
   

   



    <div class="row">       
        <?php
        echo GxHtml::submitButton(Yii::t('app', 'Save'),array('class'=>'btn btn btn-primary'));
        $this->endWidget();
        ?>
    </div>
</div>
<!-- form -->
